import request from '@/utils/request'

// 查询ECPM记录列表
export function listEcpmRecord(query) {
  return request({
    url: '/game/ecpmRecord/list',
    method: 'get',
    params: query
  })
}

// 查询ECPM记录详细
export function getEcpmRecord(ecpmId) {
  return request({
    url: '/game/ecpmRecord/' + ecpmId,
    method: 'get'
  })
}

// 新增ECPM记录
export function addEcpmRecord(data) {
  return request({
    url: '/game/ecpmRecord',
    method: 'post',
    data: data
  })
}

// 修改ECPM记录
export function updateEcpmRecord(data) {
  return request({
    url: '/game/ecpmRecord',
    method: 'put',
    data: data
  })
}

// 删除ECPM记录
export function delEcpmRecord(ecpmId) {
  return request({
    url: '/game/ecpmRecord/' + ecpmId,
    method: 'delete'
  })
}
